package com.gopay.common.domain.cust;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 网联改造用白名单
 * @author dong-wang5@hnair.com
 * @date 2018-04-09 16:02:52
 */
@Entity
@Table(name = "CUST_INFO_WHITELIST")
public class CustInfoWhitelist extends BaseEntity{

    private static final long serialVersionUID = 4943961788738165346L;

    private Long id;
    private String custId;
    private String corpName;
    private String type;
    private String status;
    private String remark;
    private Date createdTs;
    private Date lastUpdTs;
    private String createOperId;
    private String lastUpdOperId;
    private int version;

    @Id
    @SequenceGenerator(name = "CustInfoWhitelistSequence", sequenceName = "CUST_INFO_WHITELIST_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CustInfoWhitelistSequence")
    @Column(name = "ID", unique = true, nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "CUST_ID", nullable = false, length = 10)
    public String getCustId() {
        return custId;
    }
    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "CORP_NAME", length = 100)
    public String getCorpName() {
        return corpName;
    }
    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    @Column(name = "TYPE", length = 2)
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "STATUS", length = 1)
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name = "REMARK", length = 100)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }
    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }
    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    @Column(name = "CREATE_OPER_ID", length = 20)
    public String getCreateOperId() {
        return createOperId;
    }
    public void setCreateOperId(String createOperId) {
        this.createOperId = createOperId;
    }
    @Column(name = "LAST_UPD_OPER_ID", length = 20)
    public String getLastUpdOperId() {
        return lastUpdOperId;
    }
    public void setLastUpdOperId(String lastUpdOperId) {
        this.lastUpdOperId = lastUpdOperId;
    }
    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return version;
    }
    public void setVersion(int version) {
        this.version = version;
    }
}
